package com.ums.upos.util;

import android.os.Environment;

import java.io.File;

/**
 * Created by xiaox on 16/9/18.
 */
public class EmvFileUtils {

    public static String getAidPath(String bussinessId) {
        return Environment.getExternalStorageDirectory()
                + File.separator + "emv"
                + File.separator + bussinessId
                + File.separator + "newaid";
    }

    public static String getCapkPath(String bussinessId) {
        return Environment.getExternalStorageDirectory()
                + File.separator + "emv"
                + File.separator + bussinessId
                + File.separator + "newcapk";
    }

    public static boolean isEmvFileExist(String bussinessId) {
        return FileUtils.isFileExist(getAidPath(bussinessId)) && FileUtils.isFileExist(getCapkPath(bussinessId));
    }
}
